import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', {
  state:()=>{
    return {
      count:1,
      price:5
    }
  },
  actions:{
    addCount(inc:number){
      this.count+=inc;
      
      console.log("addCount",this.count);
    },
    subCount(dec:number){
      this.count-=dec; 
    }
  }
})
